<?php defined('BASEPATH') OR exit('No direct script access allowed');

if ( ! function_exists('total_page') ) {
	function total_page($total, $limit){
		$result = 0;
		$result = (int)($total / $limit )  ;
		$s = ($total % $limit ) > 0 ? 1 : 0;
		$result  += $s;
		return $result;
	}
}
